package com.hehe.boot.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor //有参构造器
@NoArgsConstructor  //无参构造器
@TableName("doctor") // 对应数据库表名
public class Doctor {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;

    @TableField("clinic_id")
    @ApiModelProperty(value = "属于哪个clinic")
    private Long clinicId;

    @TableField("book_id")
    @ApiModelProperty(value = "book上的ID")
    private Long bookId;

    @TableField("name")
    @ApiModelProperty(value = "医生名字")
    private String name;

    @TableField("image_url")
    @ApiModelProperty(value = "医生图片")
    private String imageUrl;

    @TableField("detail")
    @ApiModelProperty(value = "医生介绍")
    private String detail;

    @TableField("degrees")
    @ApiModelProperty(value = "医生学历")
    private String degrees;

    @TableField("work_start")
    @ApiModelProperty(value = "工作开始时间")
    private LocalDateTime workStart;

    @TableField("work_end")
    @ApiModelProperty(value = "工作结束时间")
    private LocalDateTime workEnd;

    @TableField("work_times")
    @ApiModelProperty(value = "当天可以预约次数")
    private Integer workTimes;

    @TableField("remain")
    @ApiModelProperty(value = "当天剩余预约次数")
    private Integer remain;

    @TableField("work_room")
    @ApiModelProperty(value = "诊断室")
    private String workRoom;
}
